package com.luo.factorybean;

import org.springframework.beans.factory.FactoryBean;

public class MyFactoryBean implements FactoryBean<MyTestFactoryBean> {
	public MyFactoryBean() {
		System.out.println("MyFactoryBean");
	}

	@Override
	public MyTestFactoryBean getObject() throws Exception {
		MyTestFactoryBean myTestFactoryBean = new MyTestFactoryBean();
		return myTestFactoryBean;
	}

	@Override
	public Class<?> getObjectType() {
		return MyTestFactoryBean.class;
	}
}
